import { SCENE } from './scene.js'
import { LIGHT } from './light.js'
import { ACTOR } from './actor.js'
import { HELPER } from './helper.js'
import { MATERIAL } from './material.js'
import { POSTPROCESSING } from './postprocessing.js'
import { GAME } from './game.js'
import { RENDER } from './render.js'
import { INPUT } from '../input.js'
import { FLAGS } from '../declarations.js'
import { RAYCAST } from './raycast.js'
import { UI } from '../ui/ui.js'
import { DRIVE } from '../drive.js'

import * as $ from "jquery"

const WORLD = {

	init: () => {

		$("#start-button").fadeIn()
		$("#progress").hide()

		MATERIAL.init()
		LIGHT.init()
		ACTOR.init()
		SCENE.init()
		HELPER.init()
		RAYCAST.init()

		UI.init()
		DRIVE.init()

		WORLD.intro()

	},

	intro: () => {
		// if intro is needed, skip if none
		WORLD.start()
	},

	start: () => {
		
		GAME.init()
		INPUT.init()
		RENDER.start()
	}

}


export { WORLD }